<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>CP通过指令进行量控制</title>
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/css/managercss.css" />
<style type="text/css">
<!--
body {
	margin-left: 5px;
	margin-top: 5px;
	margin-right: 5px;
	background:#EFEFEF;
}
-->
</style>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/jquery-1.4.min.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/jquery.form.js"></script>
<script type="text/javascript">
	var ctp = '<%=request.getContextPath() %>';
	$(function(){
		$("#update").click(function(){
			$.ajax({
				url:"<%=request.getContextPath()%>/admin/sp/updatekouliang",
				data:$("#companyForm").formSerialize(),
				type:"POST",
				success:function(flag){
					if(flag=='1'){
						alert("修改成功!");
						parent.location.reload();
					}else{
						alert("修改失败!");
					}
				}
			});
			
		});
	});
</script>
</head>
<body>
<div class="information">
	<div class="list">
		<form method="post" id="companyForm">
		<input type="hidden" name="id" id="id" value="${selectById.id }">
		<ul>
			<li style="width: 120px;text-align: right;">编号：</li>
			<li style="width: 300px;text-align: left;">${selectById.id }</li>
		</ul>
		<ul>
			<li style="width: 120px;text-align: right;">渠道号：</li>
			<li style="width: 350px;text-align: left;">${selectById.cpid }</li>
		</ul>
		<ul>
			<li style="width: 120px;text-align: right;">端口号：</li>
			<li style="width: 350px;text-align: left;">${selectById.spcode }</li>
		</ul>
		<ul>
			<li style="width: 120px;text-align: right;">指令：</li>
			<li style="width: 350px;text-align: left;">${selectById.spcommand }</li>
		</ul>
		<ul>
			<li style="width: 120px;text-align: right;">按指令扣量比例：</li>
			<li style="width: 350px;text-align: left;">
				<input type="text" name="kouliang" id="kouliang" value="${selectById.kouliang }" >填写数字，比如：10%，填写10
			</li>
		</ul>
			<ul>
				<li style="width: 120px;text-align: right;">&nbsp;</li>
				<li style="width: 350px;text-align: left;">
					<input type="button" id="update" value="提 交" /> 
				</li>
			</ul>
			<div class="clear"></div>	
		</form>
	</div>
</div>
</body>
</html>